← Back to issue list

snapcraft clean failed but exit 0

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2044389
Type
issue
State
open
Author
~moisesperezespinosa
Labels
Created
2023-11-23 15:50:38.988629+00:00
Updated
2023-11-27 13:29:11.415338+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

On our jenkins pipelines we're using snapcraft to generate our package. Just before calling 'snapcraft' command we use the 'snapcraft clean' command. We noticed the 'snapcraft clean' command without something to clean doesn't give an exit 1 error. Our shell scripts are set with the option > set -e This is the output of the 'snapcraft clean' command: ---------------------------------------------------------------------------------------------------- Calling 'snapcraft clean' ... info failed: The following errors occurred: instance "snapcraft-<app-name>" does not exist Starting Snapcraft 7.5.3 Logging execution to '/home/user/.local/state/snapcraft/log/snapcraft-20231122-235234.244208.log' ... 'snapcraft clean' complete. ---------------------------------------------------------------------------------------------------- Despite the reported error the return code is 0

Evaluation history

No evaluation history available.